package com.sgb.kjwl.repository;

import com.sgb.kjwl.model.entity.DeviceAttrEntity;
import com.sgb.kjwl.model.entity.DeviceDetailEntity;
import com.sgb.kjwl.model.entity.lease.DeviceListEntity3;
import com.sgb.kjwl.model.entity.request.MachineFilterJson3;
import com.sgb.kjwl.model.entity.supplier3.DictEntity3;
import com.swgk.core.base.model.entity.ListResponse;
import com.swgk.core.base.model.entity.BaseEntity;

import java.util.List;

import io.reactivex.Observable;

public interface DeviceRepertory extends BaseRepertory {

    Observable<DeviceDetailEntity> getDeviceDetail(String id);

    Observable<BaseEntity<ListResponse<List<DeviceAttrEntity>>>> getDeviceAttr(String id);

    Observable<BaseEntity<List<DictEntity3>>> getDeviceFilterType();

    Observable<BaseEntity<List<DictEntity3>>> getDeviceFilterModel(String parentNo);

    Observable<BaseEntity<List<DictEntity3>>> getMachineFilterSort();

    Observable<BaseEntity<List<DictEntity3>>> getDeviceFilterSpec(String id);

    Observable<BaseEntity<ListResponse<List<DeviceListEntity3>>>> getDeviceList3(MachineFilterJson3 machineFilterJson3);
}
